package com.fjh.feign;

import com.fjh.es.ProdEs;
import com.fjh.feign.hystrix.UserCollectProdFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "search-service",fallback = UserCollectProdFeignHystrix.class)
public interface UserCollectProdFeign {

    @PostMapping("search/getProdEsByIds")
    List<ProdEs> getProdEsByIds(@RequestBody List<Long> prodIds);
}
